
#include <iostream>

using namespace std;

class A
{
public:
    A()
    {
        a = 10;
        b = 20;
        c = 30;
    }
public:
    int a;
protected:
    int b;
private:
    int c;
};

class B:protected A
{
public:
    void show(void)
    {
        cout << a << endl;
        cout << b << endl;
        //cout << c << endl;
    }
};




int main(int argc, char **argv)
{

    B b;
    b.show();

    return 0;
}